package com.czc.cca.ddl;

import org.zoomdev.zoom.dao.ddl.SqlType;
import org.zoomdev.zoom.dao.ddl._DDL_Column;
import org.zoomdev.zoom.dao.ddl._DDL_Primary;
import org.zoomdev.zoom.dao.ddl._DDL_Table;
import org.zoomdev.zoom.dao.driver.mysql.MysqlDriver;

@_DDL_Table(name = "admin_acc", simpleName = "", engine = MysqlDriver.InnoDB, comment = "")
public class _DDL_AdminAcc {

    @_DDL_Primary()
    @_DDL_Column(name = "ADMIN_ACCOUNT", type = SqlType.VARCHAR, size = 30, nullable = false, comment = "")
    private String account;

    @_DDL_Column(name = "ADMIN_PWD", type = SqlType.VARCHAR, size = 32, nullable = false, comment = "")
    private String pwd;

    @_DDL_Column(name = "ROLE_CODE", type = SqlType.VARCHAR, size = 30, nullable = false, comment = "")
    private String roleCode;

    @_DDL_Column(name = "CREATE_TIME", type = SqlType.TIMESTAMP, defaultFunction = MysqlDriver.CURRENT_TIMESTAMP, comment = "")
    private java.sql.Timestamp createTime;

    @_DDL_Column(name = "UPDATE_TIME", type = SqlType.TIMESTAMP, defaultFunction = MysqlDriver.CURRENT_TIMESTAMP_ON_UPDATE, comment = "")
    private java.sql.Timestamp updateTime;

    @_DDL_Column(name = "LOGIN_TIME", type = SqlType.TIMESTAMP, nullable = false, comment = "")
    private java.sql.Timestamp loginTime;

    @_DDL_Column(name = "REFRESH_TOKEN", type = SqlType.VARCHAR, size = 32, comment = "")
    private String refreshToken;

    @_DDL_Column(name = "ACCESS_TOKEN", type = SqlType.VARCHAR, size = 32, comment = "")
    private String accessToken;

    @_DDL_Column(name = "ADMIN_EXTRA", type = SqlType.LONGTEXT, comment = "")
    private String extra;

}
